
package com.cmc.service.impl;

import java.util.List;

import com.cmc.service.impl.BaseManager;
import com.cmc.model.Place;
import com.cmc.dao.PlaceDao;
import com.cmc.service.PlaceManager;
/*
* @aegis.mapping
*/
public class PlaceManagerImpl extends BaseManager implements PlaceManager {
    private PlaceDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setPlaceDao(PlaceDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.cmc.service.PlaceManager#getPlaces(com.cmc.model.Place)
     */
    public List getPlaces(final Place place) {
        return dao.getPlaces(place);
    }

    /**
     * @see com.cmc.service.PlaceManager#getPlace(String id)
     */
    public Place getPlace(final String id) {
        return dao.getPlace(new Long(id));
    }

    /**
     * @see com.cmc.service.PlaceManager#savePlace(Place place)
     */
    public void savePlace(Place place) {
        dao.savePlace(place);
    }

    /**
     * @see com.cmc.service.PlaceManager#removePlace(String id)
     */
    public void removePlace(final String id) {
        dao.removePlace(new Long(id));
    }
}
